default network device available no matter the name. It can still
be configured if you want a specific network device.
Patch by Bill Nottingham <notting@redhat.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
vifnum=${vifnum:-0}
bridge=${bridge:-xenbr${vifnum}}
+netdev=${netdev:-$(ip route list default scope global| awk '{ print $NF }')}
netdev=${netdev:-eth${vifnum}}
antispoof=${antispoof:-no}
#
# (network-script network-bridge)
#
-# Your eth0 is used as the outgoing interface, by default. To use a different
-# one (e.g. eth1) use
+# Your default ethernet device is used as the outgoing interface, by default.
+# To use a different one (e.g. eth1) use
#
# (network-script 'network-bridge netdev=eth1')
#